var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var G = /** @class */ (function () {
    function G(name) {
        this._name = '';
        this.age = 18;
        this._name = name;
    }
    return G;
}());
var GG = /** @class */ (function (_super) {
    __extends(GG, _super);
    function GG(_n, _w, _nn) {
        var _this = _super.call(this, _nn) || this;
        _this._name = "";
        _this._work = "";
        _this._name = _n;
        _this._work = _w;
        return _this;
    }
    GG.prototype.say = function () {
        console.log(this._name, this._work, this.age);
    };
    return GG;
}(G));
var g1 = new GG("tgrong", "code", "tgrong2");
g1.say();
